package com.lin.repository;

import com.lin.dataobject.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by MYQ on 2017/8/28.
 */
public interface ProductCategoryRepository extends JpaRepository<ProductCategory,Integer>{
    @Query(name = "select u from ProductCategory u where u.categoryId=?1")
    List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);
}
